package com.wyh.abst;

public class Main {
    public static void main(String[] args) {
        Animal animal = new Cat();
        animal.setName("11");
        animal.setAge(18);
        func(animal);
        System.out.println(animal.getName());
    }

    private static void func(Animal animal) {
        animal.setName("22");
    }
}
